<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ page contentType="text/html;charset=UTF-8" language="java"  pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="spring" uri="/WEB-INF/lib/spring.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib prefix="z" uri="/WEB-INF/lib/zerdoor.tld"%>
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><spring:message code='buyWorks.message.title' /></title>
    <link href="${path}/style/acg/css/style.css" rel="stylesheet" type="text/css" />
    <script src="${path}/js/jquery.min.js" type="text/javascript"></script>
    <%--<script type="text/javascript" src="${path}/style/acg/js/common.js"></script>--%>


    <script type="text/javascript">

        //去支付
        function f_goPay(){


            if("${curUser.userId}" == null || "${curUser.userId}" == ""){

                alert("<spring:message code='artist_home.alert.tipLogin' />");
                return;
            }


            if(!confirm("<spring:message code='buyWorks.message.msg2' />")){
                return;
            }
            $.post("${path}/artistPersonalHome/buyWorkByPaypay.html",
                    {works_id:${productionInfo.works_id},paymentType:3},
                    function(result){

                        if(result){
                            alert("<spring:message code='buyWorks.message.msg3' />");
                            window.location.href = "${path}/artistPersonalHome/browseProduction.html?production_id=${productionInfo.works_id}";
                        }else{
                            alert("<spring:message code='buyWorks.message.msg4' />");
                        }
                    });

        }


    </script>
</head>

<body>
<div class="header">
    <jsp:include page="../public/header.jsp">
        <jsp:param    name="home"    value="dddd"    />
    </jsp:include>
</div>

<div id="container">
    <div class="wrapper">
    	<div class="referbidbox">

            <div class="referform">
            	<div class="refersuccess">
                	<h1><spring:message code='buyWorks.message.msg6' /></h1>
                    <p><spring:message code='buyWorks.message.msg7' />：${productionInfo.works_name}
                    </p>
                    <p>
                        <spring:message code='buyWorks.message.msg8' />：￥${productionInfo.price}
                    </p>
                    <p><spring:message code='buyWorks.message.msg9' /></p>
                </div>
            </div>
        	<div class="referform nomorder">
                <ul class="referOver">
                    <li class="formli">
                        <dl class="clearfix">
                            <dt><spring:message code='buyWorks.message.msg11' /></dt>
                            <dd>
                               ￥${productionInfo.price}
                            </dd>
                        </dl>
                    </li>
                    <li class="formli">
                        <dl class="clearfix">
                            <dt><spring:message code='buyWorks.message.msg12' /></dt>
                            <dd class="clearfix" id="payType">
                                <div class="paytype_num selected">
                                	<strong><spring:message code='buyWorks.message.msg13' /></strong><br/>
                                    <p><spring:message code='buyWorks.message.msg14' />：${productionInfo.wallet}<spring:message code='buyWorks.message.msg15' /></p>
                                </div>
                                <div class="paytype"><img src="${path}/style/acg/images/pay/zfb.jpg" /></div>
                                <div class="paytype"><img src="${path}/style/acg/images/pay/paypal.jpg" /></div>
                            </dd>
                        </dl>
                    </li>
                    <li class="formli">
                        <dl class="clearfix">
                            <dt>&nbsp;</dt>
                            <dd class="clearfix">

                                <input type="submit" id="" name="" value="<spring:message code='buyWorks.message.msg16' />" class="fl submitorg" onclick="f_goPay()"/>
                             </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<div id="footer">
    <!--content-->
    <jsp:include page="../public/footer.jsp"></jsp:include>
</div>

</body>
</html>
